package com.yuelao.yuelao_backend.dto;

import com.yuelao.yuelao_backend.entity.json.MediaItem;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class PostDTO {
    private Long id;
    private Long userId;
    private String nickname; // From User
    private String avatar; // From User
    private Integer age; // From User
    private String gender; // From User
    // todo 是否认证还未实现
    private boolean isVerified; // From User
    private boolean isVip; // From User
    private boolean isFollowed; // From User

    private Long topicId;
    private String topicName; // From Topic

    private String content;
    private String location;
    private Double latitude;
    private Double longitude;
    private List<MediaItem> media;
    private Integer likeCount;
    private Integer commentCount;
    private Integer viewCount;
    private LocalDateTime createdAt;
    private String timeAgo; // For display, e.g., "1分钟前"
}